import {createRouter as _createRouter, createWebHistory} from 'vue-router';
// 导入 凡是想要通过路由跳转的，都需要在这：
// 1.导入
// 2.注册 设置对应vue组件的路径名
import my from '../views/my.vue'
import home from '../views/home.vue'
import call from '../views/call.vue'


const routes = [
    // 2.注册 设置对应vue组件的路径名
    { path: '/home', component: home },
    { path: '/call', component: call },
    { path: '/my', component: my },
]

export function createRouter() {
    return _createRouter({
        history: createWebHistory(),
        routes
    })
}
